import request from "@/utils/request";
import { FORM } from "@/config/baseUrl";

// 看板列表
export function getKanbanConfigList() {
  return request({
    url: FORM + "/task/taskBoard/list",
    method: "get",
  });
}

// 模板查询
export function getTaskTemplateTitles(taskTemplateCode) {
  return request({
    url: FORM + "/task/taskTemplateTitle/queryTaskTemplateTitle",
    method: "get",
    params: { taskTemplateCode },
  });
}

// 保存看板配置
export function saveKanbanInfo(data) {
  return request({
    url: FORM + "/task/taskTemplateTitle/saveBoardInfo",
    method: "post",
    data
  });
}
